package com.lingyu.pojo;

import java.util.Date;
import java.util.List;

public class Topic {
    private String topicId;

    private String topicContext;

    private String imgs;

    private User user;

    private Date time;
    
    private List<Comment> comments;  // 需要获得的是一个多级评论

    public Topic() {
	}
    
    public Topic(String topicId) {
		super();
		this.topicId = topicId;
	}

	public String getTopicId() {
        return topicId;
    }

    public void setTopicId(String topicId) {
        this.topicId = topicId == null ? null : topicId.trim();
    }

    public String getTopicContext() {
        return topicContext;
    }

    public void setTopicContext(String topicContext) {
        this.topicContext = topicContext == null ? null : topicContext.trim();
    }

    public String getImgs() {
        return imgs;
    }

    public void setImgs(String imgs) {
        this.imgs = imgs == null ? null : imgs.trim();
    }

   

    public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public List<Comment> getComments() {
		return comments;
	}

	public void setComments(List<Comment> comments) {
		this.comments = comments;
	}

	public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

	@Override
	public String toString() {
		return "Topic [topicId=" + topicId + ", topicContext=" + topicContext + ", imgs=" + imgs + ", user=" + user
				+ ", time=" + time + ", comments=" + comments + "]";
	}

	
    
}